package com.fm618.flex4
{
	import mx.controls.Image;
	
	public class MyStage extends Image
	{
		private var _type:String;
		private var _zindex:uint;
		
		public function MyStage()
		{
			//TODO: implement function
			super();
		}

		public function get type():String
		{
			return _type;
		}

		public function set type(value:String):void
		{
			_type = value;
		}

		public function get zindex():uint
		{
			return _zindex;
		}

		public function set zindex(value:uint):void
		{
			if(value<0){
				var err:FmError = new FmError();
				err.message = 'z-index必须是一个无符号整数！';
				err.show(err.ERROR_TYPE_ERROR);
			}else{
				_zindex = value;
			}
		}
		
		
	}
}